import { createRouter, createWebHistory } from 'vue-router'
import loginInfo from '../WJL/LoginView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'LoginView',
      component: () => import('../WJL/LoginView.vue'),
    },

    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    }
    ,



    {
      path: '/MathView',
      name: 'MathView',
      component: () => import('../views/MathView.vue'),
      children: [
        {
          path: '/UserCreateView',
          name: 'UserCreateView',
          component: () => import('../views/UserCreateView.vue'),
        },


        {
          path: '/AddRole',
          name: 'AddRole',
          component: () => import('../views/AddRole.vue'),
        },
        {
          path: '/UpdateUserView',
          name: 'UpdateUserView',
          component: () => import('../views/UpdateUserView.vue'),
        },

        {
          path: '/UpdateRole',
          name: 'UpdateRole',
          component: () => import('../views/UpdateRole.vue'),
        },
        {
          path: '/NewUserList',
          name: 'NewUserList',
          component: () => import('../views/NewUserList.vue'),
        },

        {
          path: '/MenuQueryView',
          name: 'MenuQueryView',
          component: () => import('../views/Menus/MenuQueryView.vue'),
        },
        {
          path: '/UpDataMenuView/menuID',
          name: 'UpDataMenuView',
          component: () => import('../views/Menus/UpDataMenuView.vue'),
        },
        {
          path: '/NewUserListS',
          name: 'NewUserListS',
          component: () => import('../views/Menus/NewUserListS.vue'),
        },
        {
          path: '/RoleMenusView',
          name: 'RoleMenusView',
          component: () => import('../views/RoleMenus/RoleMenusView.vue'),
        },
        {
          path: '/RoleMenusInfoView',
          name: 'RoleMenusInfoView',
          component: () => import('../views/RoleMenus/RoleMenusInfoView.vue'),
        },
        {
          path: '/TextView',
          name: 'TextView',
          component: () => import('../views/TextView.vue'),
        },
        {
          path: '/NewRoleListView',
          name: 'NewRoleListView',
          component: () => import('../views/NewRoleListView.vue'),
        },

        {
          path: '/GetLeaveRequestsView',
          name: 'GetLeaveRequestsView',
          component: () => import('../views/Requests/GetLeaveRequestsView.vue'),
        },
        {
          path: '/CreateLeaveRequestsView',
          name: 'CreateLeaveRequestsView',
          component: () => import('../views/Requests/CreateLeaveRequestsView.vue'),
        },
        {
          path: '/AppUpdataView',
          name: 'AppUpdataView',
          component: () => import('../views/Requests/AppUpdataView.vue'),
        },





      ]


    },
    {
      path: '/MathEMS',
      name: 'MathEMS',
      component: () => import('../views/MathEMS.vue'),
      children: [
        {
          path: '/GetProcesview',
          name: 'GetProcesview',
          component: () => import('../views/ZMC/Proces/GetProcesview.vue'),
        },
        {
          path: '/GetDepartmentView',
          name: 'GetDepartmentView',
          component: () => import('../views/ZMC/Department/GetDepartmentView.vue'),
        },
        {
          path: '/GetEnterpriseView',
          name: 'GetEnterpriseView',
          component: () => import('../views/ZMC/Enterprises/GetEnterpriseView.vue'),
        }, {
          path: '/GetPressionView',
          name: 'GetPressionView',
          component: () => import('../views/Pressions/GetPressionView.vue'),
        },
        {
          path: '/AddRoles',
          name: 'AddRoles',
          component: () => import('../views/Roles/AddRoles.vue'),
        },
        {
          path: '/GetRoles',
          name: 'GetRoles',
          component: () => import('../views/Roles/GetRoles.vue'),
        },
        {
          path: '/GetCustomerview',
          name: 'GetCustomerview',
          component: () => import('../views/ZMC/Customer/GetCustomerview.vue'),
        },
        {
          path: '/Show',
          name: 'Show',
          component: () => import('../views/YJB/Show.vue'),
        },
        {
          path: '/ShowCG',
          name: 'ShowCG',
          component: () => import('../views/YJB/ShowCG.vue'),
        },
        {
          path: '/AddCG',
          name: 'AddCG',
          component: () => import('../views/YJB/AddCG.vue'),
        },
        {
          path: '/ZYTBShow',
          name: 'ZYTBShow',
          component: () => import('../views/YJB/ZYTBShow.vue'),
        },
        {
          path: '/ProcessinfoShow',
          name: 'ProcessinfoShow',
          component: () => import('../views/YJB/ProcessinfoShow.vue'),
        }
        ,
        {
          path: '/SchedulingShow',
          name: 'SchedulingShow',
          component: () => import('../views/YJB/SchedulingShow.vue'),
        },
        {
          path: '/Gantt',
          name: 'Gantt',
          component: () => import('../views/YJB/Gantt.vue'),
        },
        {
          path: '/ShowmateView',
          name: 'ShowmateView',
          component: () => import('../WJL/ShowmaterView.vue'),
        },
        {
          path: '/Showmateprite',
          name: 'Showmateprite',
          component: () => import('../WJL/ShowmaterpriteView.vue'),
        },
        {
          path: '/Showsupplier',
          name: 'Showsupplier',
          component: () => import('../WJL/ShowsupplierView.vue'),
        },
        {
          path: '/UserCreateView',
          name: 'UserCreateView',
          component: () => import('../views/UserCreateView.vue'),
        },
        {
          path: '/AddRole',
          name: 'AddRole',
          component: () => import('../views/AddRole.vue'),
        },
        {
          path: '/UpdateUserView',
          name: 'UpdateUserView',
          component: () => import('../views/UpdateUserView.vue'),
        },

        {
          path: '/UpdateRole',
          name: 'UpdateRole',
          component: () => import('../views/UpdateRole.vue'),
        },
        {
          path: '/NewUserList',
          name: 'NewUserList',
          component: () => import('../views/NewUserList.vue'),
        },

        {
          path: '/MenuQueryView',
          name: 'MenuQueryView',
          component: () => import('../views/Menus/MenuQueryView.vue'),
        },
        {
          path: '/UpDataMenuView/menuID',
          name: 'UpDataMenuView',
          component: () => import('../views/Menus/UpDataMenuView.vue'),
        },
        {
          path: '/NewUserListS',
          name: 'NewUserListS',
          component: () => import('../views/Menus/NewUserListS.vue'),
        },
        {
          path: '/RoleMenusView',
          name: 'RoleMenusView',
          component: () => import('../views/RoleMenus/RoleMenusView.vue'),
        },
        {
          path: '/RoleMenusInfoView',
          name: 'RoleMenusInfoView',
          component: () => import('../views/RoleMenus/RoleMenusInfoView.vue'),
        },
        {
          path: '/TextView',
          name: 'TextView',
          component: () => import('../views/TextView.vue'),
        },
        {
          path: '/NewRoleListView',
          name: 'NewRoleListView',
          component: () => import('../views/NewRoleListView.vue'),
        }, {
          path: '/GetWorksView',
          name: 'GetWorksView',
          component: () => import('../views/ZYY/GetWorksView.vue'),
        }
        , {
          path: '/GetRequisitionsView',
          name: 'GetRequisitionsView',
          component: () => import('../views/ZYY/GetRequisitionsView.vue'),
        }, {
          path: '/GetInventorylistView',
          name: 'GetInventorylistView',
          component: () => import('../views/ZYY/GetInventorylistView.vue'),
        },
        {
          path: '/A',
          name: 'A',
          component: () => import('../views/ZYY/A.vue'),
        },
        {
          path: '/C',
          name: 'C',
          component: () => import('../views/ZYY/C.vue'),
        },
        {
          path: '/GetBOMguanView',
          name: 'GetBOMguanView',
          component: () => import('../views/ZYY/GetBOMguanView.vue'),
        },
        {
          path: '/GOngzuoLiu',
          name: 'GOngzuoLiu',
          component: () => import('../views/ZYY/GOngzuoLiu.vue'),
        },
        {
          path: '/ShowPorduction',
          name: 'ShowPorduction',
          component: () => import('../WJL/ShowproductionView.vue'),
        },
        {
          path: '/GetIncominginformationView',
          name: 'GetIncominginformationView',
          component: () => import('../views/ZMC/Incominginformation/GetIncominginformationView.vue'),
        },
        {
          path: '/Showsalesreceipt',
          name: 'Showsalesreceipt',
          component: () => import('../WJL/ShowsalesreceiptView.vue'),
        },
        {
          path: '/ShowproductionreturnView',
          name: 'ShowproductionreturnView',
          component: () => import('../WJL/ShowproductionreturnView.vue'),
        },
        {
          path: '/Showarredsinfo',
          name: 'Showarredsinfo',
          component: () => import('../WJL/ShowarredsinfoView.vue'),

        },
        {
          path: '/GetProductionwork',
          name: 'GetProductionwork',
          component: () => import('../views/ZMC/Productionwork/GetProductionwork.vue'),
        },
        {
          path: '/CreateProduction',
          name: 'CreateProduction',
          component: () => import('../views/ZMC/Productionwork/CreateProduction.vue'),

        },
        {
          path: '/Productiondetails',
          name: 'Productiondetails',
          component: () => import('../views/ZMC/Productionwork/Productiondetails.vue'),

        },

        {
          path: '/Showbilling',
          name: 'Showbilling',
          component: () => import('../WJL/ShowbillingmanagementView.vue'),
        },
        {
          path: '/Addbilling',
          name: 'Addbilling',
          component: () => import('../WJL/AddbillingmanagementView.vue'),
        },
        {
          path: '/Showarrival',
          name: 'Showarrival',
          component: () => import('../WJL/ShowarrivalmanagementView.vue'),
        },
        {
          path: '/Addarrival',
          name: 'Addarrival',
          component: () => import('../WJL/AddarrivalmanagementView.vue'),
        },
      ]
    },
    {
      path: '/ACTMainthView',
      name: 'ACTMainthView',
      component: () => import('../views/ACTMainthView.vue'),
      children: [
        {
          path: '/GetProductsShoopView',
          name: 'GetProductsShoopView',
          component: () => import('../views/Traceability/GetProductsShoopView.vue'),
        },
        {
          path: '/FarmsInfoView',
          name: 'FarmsInfoView',
          component: () => import('../views/Farms/FarmsInfoView.vue'),
        },
        {
          path: '/SlaughtersInfoView',
          name: 'SlaughtersInfoView',
          component: () => import('../views/Slaughters/SlaughtersInfoView.vue'),
        },

      ]
    },


  ],
})

export default router
